package com.gitee.srurl.system.util.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author zxw
 * @date 2022/11/27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResponse<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 4433590880610330257L;

    /**
     * 列表
     */
    private List<T> records;

    /**
     * 总数
     */
    private Long total;

    /**
     * 当前页
     */
    private Long currentPage;

    /**
     * 每页数量
     */
    private Long pageSize;
}
